<!--
author: 何其沆(pooky)
desc: CommissionRateList
date: 2021-11-12
-->
<template>
  <div class="list">
    <div class="list-left" :style="{ width: type === 1 ? '65%' : '50%' }">{{ listLeft }}</div>
    <div class="list-right" :style="{ width: type === 1 ? '35%' : '50%' }">{{ listRight }}</div>
  </div>
</template>

<script setup>
defineProps({
  listLeft: String,
  listRight: String,
  type: {
    type: Number,
    value: 0
  }
})
</script>

<style scoped lang="less">
.list {
  width: 100%;
  height: 40px;
  line-height: 40px;
  display: flex;
  border-bottom: 1px solid @border-color;
  &:last-child {
    border-bottom: none;
  }
  .list-left,
  .list-right {
    width: 50%;
    font-size: 14px;
    color: @black-85p;
  }
  .list-left {
    border-right: 1px solid @border-color;
    padding-left: 10px;
  }
  .list-right {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    padding-right: 10px;
  }
}
</style>
